<?php 
use_helper('Date');
 
echo $workPager->renderNavigationTop();  
 
echo _open('ul.elements');  
 
foreach ($workPager as $work)  
{  
  echo _open('li.element');  
 
    // wrap the work link into a H2 tag with the t_medium CSS class  
    echo _tag('h2.t_medium', _link($work)->text(_($work->type)));  
    echo _media($work->Image)->size(200,150);
    echo _tag('div.description',$work->getDescription());
    echo _tag('div.description','<strong>Deadline</strong> '.format_date($work->day_exprice, 'D'));
    // show the work extract, processed with markdown  
    //echo markdown($work->extract, '.extract');  
    echo _tag('div.clear', ''); 
    // in a P tag, we put some infos about the work  
    echo _tag('p.work_infos',  
 
      // creation date of the work, formatted with a symfony helper  
     // _tag('span', format_date($work->day_exprice, 'D')).  
      //' | '.    
      // another link to the work, with the "Read more" translated text  
      _link($work)->text(__('Readmore...'))  
    );  
 
  echo _close('li');  
}  
 
echo _close('ul');  
 
echo $workPager->renderNavigationBottom();  